/*
 * Copyright the original author or authors.
 * 
 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.mozilla.org/MPL/MPL-1.1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.babeuf.form.conditions 
{
	
	/**
	 * Defines the methods that needs to be added for creating a new <code>AbstractCondition</code>
	 * 
	 * @langversion 3.0
     * @playerversion Flash 10
	 * 
	 * @see net.babeuf.form.conditions.AbstractCondition
	 * 
	 * @author damien pegoraro
	 */
	public interface ICondition 
	{
		/**
		 * Checks the condition. 
		 * 
		 * <p>This method must be overwritten by concrete classes for working custom conditions
		 * In custom conditions, you must also manualy <code>_updateSensors</code> to setup the sensors state.</p>
		 * 
		 * @return <code>true</code> is the condition is matched, <code>false</code> if not
		 * 
		 * @langversion 3.0
		 * @playerversion Flash 9
		 */
		function match() : Boolean ; 
	}
	
}